package org.demo.base.jdbc;

import org.demo.base.jdbc.util.JDBCUtils;

import java.sql.SQLException;

public class Test {
    public static void main(String[] args) throws SQLException {
        JDBCUtils.beginTransaction();
        AccountDao accountDao= new AccountDao();
        accountDao.update("aaa",100);
        accountDao.update("bbb",100);
        JDBCUtils.commitTransaction();
    }
}
